package cn.tedu.trading_platform.mapper;

import cn.tedu.trading_platform.pojo.dto.userDTO.UpdatePasswordParam;
import cn.tedu.trading_platform.pojo.dto.userDTO.UserLoginParam;
import cn.tedu.trading_platform.pojo.dto.userDTO.UserUpdateParam;
import cn.tedu.trading_platform.pojo.entity.User;
import cn.tedu.trading_platform.pojo.vo.UserVO;

//用户登录注册
public interface UserMapper {
    /* 用户注册*/
    int insertUser(User user);
    int selectByUsername(String username);
    UserVO selectByUsernameAndPassword(UserLoginParam userLoginParam);
    int deleteUser(Long id);
    int updateUser(UserUpdateParam userUpdateParam);
    int updateUserPassword(UpdatePasswordParam updatePasswordParam);
}
